package com.nightpiter.view.graphics;

import com.nightpiter.view.graphics.abstaractions.AbstractLinearGradient;
import com.nightpiter.view.graphics.factories.LinearGradientFactory;

public class LinearGradient extends Shader implements AbstractLinearGradient {

	public LinearGradient(float x0, float y0, float x1, float y1, int color0,
			int color1) {
		setDelegate(LinearGradientFactory.getFactory().create(x0, y0, x1, y1,
				color0, color1));
	}

	public LinearGradient(float x0, float y0, float x1, float y1, int[] colors,
			float[] positions) {
		setDelegate(LinearGradientFactory.getFactory().create(x0, y0, x1, y1,
				colors, positions));
	}

}
